<?php


namespace Standard\Bundle\ModuleAboutBundle\Services;

use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Doctrine\ORM\EntityManager;
use Symfony\Component\DependencyInjection\Container;
/**
 * Description of Article
 *
 * @author tuong.luu
 */

interface AboutInterface {
	public function getTitle();
}




abstract class AbstractAbout implements AboutInterface {
	private $about;
	private $author;
	
        public function getTitle(){
            return 'title';
        }

        public function getTitleAndAuthor() {
		$this->title . $this->author;	
	}
	abstract public function getAuthor();	
	
	
}

class About extends AbstractAbout {
    //put your code here
    private $templating;
	
    private $router;

    private $em;

    private $container;

    public function __construct(EngineInterface $templating, 
                                UrlGeneratorInterface $router,
                                EntityManager $em, Container $container )
    {
        $this->templating = $templating;
        $this->router = $router;
        $this->em = $em;
        $this->container = $container;

    }

    public function getDemo($param)
    {
        return 'about ' . $param ;
    }
    
    public function getTitle() {
        return 11;
    }
    
    public function getAuthor() {
        return 222;
    }
}
